package com.roc.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;
/**
 * 分润比例
 * @author zx
 *
 */


@Entity
@Table(name = "t_profit_percent")

public class ProfitPercent implements Serializable {

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "profitPercentSeq")
	@SequenceGenerator(name = "profitPercentSeq", sequenceName = "T_PROFIT_PERCENT_SEQ")
	private long id;
	
	@Column(name = "agent_id")
	private String agent_id;// 代理商ID

	@Column(name = "limit_amt")
	private BigDecimal limit_amt; // 最小金额

	@Column(name = "max_amt")
	private BigDecimal max_amt;// 最大金额

	@Column(name = "percent")
	private String percent;// 分润比例

	@Column(name = "is_end")
	private String is_end;// 区间段范围

	@Transient
	private String isCheck;// 是否选中 更新时使用

	public ProfitPercent() {
	}

	public String getAgent_id() {
		return agent_id;
	}

	public void setAgent_id(String agentId) {
		agent_id = agentId;
	}

	public BigDecimal getLimit_amt() {
		return limit_amt;
	}

	public void setLimit_amt(BigDecimal limitAmt) {
		limit_amt = limitAmt;
	}

	public BigDecimal getMax_amt() {
		return max_amt;
	}

	public void setMax_amt(BigDecimal maxAmt) {
		max_amt = maxAmt;
	}

	public String getPercent() {
		return percent;
	}

	public void setPercent(String percent) {
		this.percent = percent;
	}

	public String getIs_end() {
		return is_end;
	}

	public void setIs_end(String isEnd) {
		is_end = isEnd;
	}

	public String getIsCheck() {
		return isCheck;
	}

	public void setIsCheck(String isCheck) {
		this.isCheck = isCheck;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

}
